package com.hzdp.common;

public class ThreadSimpleDemo {

	static class Thread1 extends Thread {
		@Override
		public void run() {
			System.out.println("Thread 1");
		}
	}

	static class Thread2 implements Runnable {

		@Override
		public void run() {
			System.out.println("Thread 2");
		}

	}

	public static void main(String[] args) {
		new Thread1().start();
		new Thread(new Thread2()).start();
		System.out.println("over");
	}
}
